package net.vanchu.mortgagecalculator.mortgage.data.monthRepayment;

import java.io.Serializable;

/**
 * Created by Granton on 2016/12/14.
 */
public abstract class MonthRepay implements Serializable {

    public int index;

    public double remainPrincipal;

    public MonthRepay(int index, double remainPrincipal) {
        this.index = index;
        this.remainPrincipal = remainPrincipal;
    }

    public int getIndex() {
        return index;
    }

    public double getRemainPrincipal() {
        return remainPrincipal;
    }

    public abstract double getTotalPrincipal();

    public abstract double getTotalInterest();

    public abstract double getTotalRepayNumber();

}